package com.zixuan.sina.service;



import com.zixuan.sina.entity.Permission;
import com.zixuan.sina.utils.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lemon
 * @since 2023-10-12
 */
public interface PermissionService {
    public List<Permission> findPermissionByUserId(String userId);

    Result getPermissionList();


    Result add(Permission permission);

    Result delete(String id);

    Result update(Permission permission);

    Result getPermissionParentList();

    List<Permission> listAllPermission(List<Permission> roles);

//    Result assignPermission(AssignVo assignVo);

    List<Long> getPermissionIds(Long roleId);


    List<Permission> listAll();

}
